Skip to content

Conversation

zainkabani
Copy link
Contributor

@zainkabani zainkabani commented Oct 3, 2022

A banned instance will only be banned for the duration of the ban_time setting. If an instance experiences issues longer than the ban time and shorter than the health check delay, it will return to the pool of available instances and clients will connect to the bad replica.

This PR makes the is_banned function more lightweight (it's used by the admin db) and forces health check after unbanning an instance

@zainkabani zainkabani marked this pull request as draft October 3, 2022 20:04
@zainkabani zainkabani changed the title Perform health check before unbanning Force health check after unbanning and make is_banned more light weight Oct 4, 2022
@zainkabani zainkabani marked this pull request as ready for review October 4, 2022 15:56
@levkk levkk requested a review from drdrsh October 5, 2022 00:49
Copy link
Contributor

@levkk levkk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zainkabani zainkabani closed this Oct 20, 2022
@levkk
Copy link
Contributor

levkk commented Oct 20, 2022

This was a good idea. Looking forward to the next PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants